package kz.pompei.oneGwtStands.client.remote.data;

import java.util.ArrayList;
import java.util.List;

import kz.pompei.OneGwt.cmodel.SimpleRecord;

public class ApplicationEntity {
  private String id;
  private String code;
  private String name;
  private String vendor;
  
  private final List<RoleEntity> roles = new ArrayList<RoleEntity>();
  
  public String getId() {
    return id;
  }
  
  public void setId(String id) {
    this.id = id;
  }
  
  public String getCode() {
    return code;
  }
  
  public void setCode(String code) {
    this.code = code;
  }
  
  public String getName() {
    return name;
  }
  
  public void setName(String name) {
    this.name = name;
  }
  
  public String getVendor() {
    return vendor;
  }
  
  public void setVendor(String vendor) {
    this.vendor = vendor;
  }
  
  public SimpleRecord toSimpleRecord() {
    return new SimpleRecord( getId(), getName() );
  }

  public List<RoleEntity> getRoles() {
    return roles;
  }
}
